home *** CD-ROM | disk | FTP | other *** search
/ Freaks Macintosh Archive / Freaks Macintosh Archive.bin / Freaks Macintosh Archives / Hacking & Misc / bundle of exploits.sit / bundle of exploits / garbage.c < prev    next >
C/C++ Source or Header  |  1998-07-17  |  1KB  |  44 lines

  1. /*
  2.  * Garbage Generator Version 1.0
  3.  * Coded by RooK
  4.  * Contact Information: rook@forfree.at
  5.  *                      http://www2.fwi.com/~rook/
  6.  *
  7.  * This will create a string of garbage that can be used for several
  8.  * purposes(overflows, fill disk space, etc...). A user defined string will
  9.  * be appended to the end of the garbage string. Fill free to modify this
  10.  * code for you own needs. All output will be sent the garbage.txt. Just
  11.  * copy/paste it to where ever you wish.
  12.  */
  13.  
  14.  #include <stdio.h>
  15.  #include <stdlib.h>
  16.  
  17.  #define version "Version 1.0"
  18.  FILE * garbage;
  19.  
  20.  void main(void)
  21.  {
  22.   char blah[256];
  23.   int len;
  24.   int count;
  25.  
  26.   printf("--==[ Garbage Generator %s ]==--\n", version);
  27.   printf("                  by RooK\n\n\n");
  28.   puts("Enter the string you wish to appear after the garbage: ");
  29.   gets(blah);
  30.   printf("Enter the length of the garbage string: ");
  31.   scanf("%d", &len);
  32.  
  33.   garbage = fopen("garbage.txt", "w");
  34.   for(count = 1; count <= len; count++)
  35.   {
  36.    fputs("x", garbage);
  37.    }
  38.    fprintf(garbage, blah);
  39.    fclose(garbage);
  40.   return;
  41.   }
  42.  
  43.  
  44.